import BasicLayout from '@/layouts/basic-layout';
import Setting from '@/setting';

const pre = 'access_';

export default {
  path: `${Setting.roterPre}/access_management/`,  // 跟网页地址栏地址一致
  name: 'access',//需要去route.js引入import access from './modules/access';
  header: 'access',//跟routes.js的命名一致
  meta: {
    auth: ['access-management']
  },
  redirect: {
    name: `${pre}accessList`  //乱起的
  },
  component: BasicLayout,
  children: [
    {
      path: 'index',
      name: `${pre}accessList`,  //乱起的
      meta: {
        title: '访问列表',
        auth: ['access-management-list']
      },
      component: () => import('@/pages/access/accessManagement/index')
    }
  ]
};